#pragma once
#include "HotKeyEdit.h"
#include "SingletonBase.h"

// HotKeySettingDlg dialog

class HotKeySettingDlg : public CDialog, public SingletonBase<HotKeySettingDlg>
{
	DECLARE_DYNAMIC(HotKeySettingDlg)

public:
	static void Initialize(CWnd* parent);
	static void Show(CWnd* parent, HWND hwnd);
	HotKeySettingDlg(CWnd* pParent);   // standard constructor
	virtual ~HotKeySettingDlg();

// Dialog Data
	enum { IDD = IDD_HOTKEYSETTINGDLG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL PreTranslateMessage(MSG* pMsg);

	virtual BOOL OnInitDialog();

	void RefreshItem();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedCancel();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	HotKeyEdit mHotKeyEdit;

	CButton mCheckButtion[1];
	HWND mHotKeyWnd;
	void SetHotKeyWnd(HWND val) { mHotKeyWnd = val; }
};
